package com.mlf.factory.factory.demo;

import com.mlf.factory.easyFactory.demo.Shape;
import com.mlf.factory.easyFactory.demo.Triangle;

// 新增图形类型只需扩展
public class TriangleFactory implements ShapeFactory {
    @Override
    public Shape createShape() {
        return new Triangle();
    }
}